<!DOCTYPE html>
<html>
<title>CSS Transforms Test: transform property with combination of translate and rotate function
</title>
    <link rel="author" title="Jun Qian" href="mailto:tonychyan9@gmail.com">
    <link rel="help" href="http://www.w3.org/TR/css3-transforms/#transform-property">
    <link rel="help" href="http://dev.w3.org/csswg/css3-transforms/#transform-origin">
    <link rel="match" href="reference/css-transform-scale-ref-001.html">
    <meta name="assert" content="Test checks that whether function translate and rotate can work together.">
    <meta name="flag" content="combination">
     <style type="text/css">
        .container {
            position: absolute;
        }
        .greenRectangle {
            position: absolute; 
            top: 0;
            left: 0;
            width: 100px;
            height: 200px;
            background-color: green;
			transform:translate(100px,0);
			transform-origin: 100% bottom;
			transform:rotate(90deg);
         }         						        
         /* This div should only be visible if the test fails */
        .redSquare {
            position: absolute;
            /* It is approximately the same size as the test div, but with a 1px margin */
            width: 98px;
            height: 98px;
            background-color: red;
            left: 200px;
            top :100px;
        }
    </style>
</head>
<body>
    <p>The test passes if you can only see the green rectangle and no red square.</p>
    <div class="container">
        <!-- This is the square that should not be visible if the test passes -->
        <div class="redSquare"></div>
        <!-- This is the rectangle being tested with the transform -->
        <div class="greenRectangle"></div>
    </div>
</body>
</html>